package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.TGoods;
import com.ruoyi.system.domain.TestCourse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TGoodsMapper {


    /*查询商品数据集合*/
    public List<TGoods> selectGoodsList(TGoods goods);

    /*查询所有列表*/
    public List<TGoods> selectGoodsAll();

    /*根据id查询商品*/
    public TGoods selectGoodsById(Long goodsId);

    /*删除岗位信息*/
    public int deleteGoodsById(Long goodsId);

    /*批量删除
     * */
    public int deleteGoodsByIds(Long[] goodsIds);

    /*修改*/
    public int updateGoods(TGoods goods);

    /*增加*/
    public int insertGoods(TGoods goods);

    /*校验名称*/
    public TGoods checkGoodsNameUnique(String goodsName);

    /*校验编码*/
    //public TGoods checkGoodsCodeUnique(String goodsCode);

}
